<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景图片</title>
    <style>
        .no-rt {
            width: 300px;
            height: 300px;
            background-image: url(images/王者logo.png);
            /* 背景图片不平铺   */
            background-repeat: no-repeat;

        }

        .rt {
            width: 300px;
            height: 300px;
            background-image: url(images/王者logo.png);
            /* 默认情况下背景图片是平埔的 */
            /* background-repeat: repeat;*/
        }

        .rt-x {
            width: 300px;
            height: 300px;
            background-color: pink;
            background-image: url(images/王者logo.png);
            /* 沿着x平铺   */
            background-repeat: repeat-x;

        }



        .rt-y {
            width: 300px;
            height: 300px;
            background-image: url(images/王者logo.png);
            /* 沿着y平铺   */
            background-repeat: repeat-y;

        }
    </style>
</head>

<body>
    <div class="no-rt"></div>
    <div class="rt"></div>
    <div class="rt-x"></div>
    <div class="rt-y"></div>

</body>

</html>